<?php
//工厂模式
require('Aa.php');
class Factory
{
   public static function createDB($type)
   {
	  return new $type;
   }
}

$db=Factory::createDB('Aa');
print_r($db);

?>